// eslint-disable-next-line strict
const Service = require('egg').Service;

class HelloService extends Service {
  async getMessage() {
    try {
      return await this.app.model.Hello.findAll();
    } catch (e) {
      return null;
    }
  }
}

module.exports = HelloService;
